import React, { Component } from 'react'
import ctx from './store/index'

export default class Conter extends Component {

  static contextType = ctx;

  render() {

    console.log(this.context);
    let {sup,opp} = this.context
    

    return (
      <div>
        <p>支持人数:{sup}</p>
        <p>反对人数:{opp}</p>
      </div>
    )
  }
}
